﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wicresoft.UnifyShow.Utility
{
    public class EnumUtility
    {
        public enum PlanStatus
        {
            [EnumItemDescription("zh-CN", "已启用")]
            [EnumItemDescription("en-US", "Started")]
            Started = 1,
            [EnumItemDescription("zh-CN", "已暂停")]
            [EnumItemDescription("en-US", "Pause")]
            Pause = 0,
            [EnumItemDescription("zh-CN", "已结束")]
            [EnumItemDescription("en-US", "End")]
            End = 2
        }

        /// <summary>
        /// 用户角色
        /// </summary>
        public enum UserRole
        {
            /// <summary>
            /// 创建人
            /// </summary>
            [EnumItemDescription("zh-CN", "创建人")]
            [EnumItemDescription("en-US", "Creator")]
            Creator = 1,
            /// <summary>
            /// 责任人
            /// </summary>
            [EnumItemDescription("zh-CN", "责任人")]
            [EnumItemDescription("en-US", "Responsible")]
            Responsible = 2,
            /// <summary>
            /// 只能查看
            /// </summary>
            [EnumItemDescription("zh-CN", "查看人")]
            [EnumItemDescription("en-US", "View")]
            View = 3
        }

        /// <summary>
        /// 计划周期类型
        /// </summary>
        public enum PlanType
        {
            [EnumItemDescription("zh-CN", "一次")]
            [EnumItemDescription("en-US", "Once")]
            Once = 1,
            [EnumItemDescription("zh-CN", "每天")]
            [EnumItemDescription("en-US", "Day")]
            Day = 2,
            [EnumItemDescription("zh-CN", "每周")]
            [EnumItemDescription("en-US", "Week")]
            Week = 3,
            [EnumItemDescription("zh-CN", "每月")]
            [EnumItemDescription("en-US", "Month")]
            Month = 4
        }

        public enum TaskStatus
        {
            [EnumItemDescription("zh-CN", "进行中")]
            [EnumItemDescription("en-US", "InProcess")]
            InProcess = 1,
            [EnumItemDescription("zh-CN", "已完成")]
            [EnumItemDescription("en-US", "Completed")]
            Completed = 2,
            //[EnumItemDescription("zh-CN", "已过期")]
            //[EnumItemDescription("en-US", "Expired")]
            //Expired = 3,
            [EnumItemDescription("zh-CN", "已取消")]
            [EnumItemDescription("en-US", "Cancled")]
            Cancled = 3,
            [EnumItemDescription("zh-CN", "已关闭")]
            [EnumItemDescription("en-US", "Closed")]
            Closed = 4
        }

        public enum TaskType
        {
            [EnumItemDescription("zh-CN", "日常机房巡检计划")]
            [EnumItemDescription("en-US", "Daily")]
            Daily = 1,
            [EnumItemDescription("zh-CN", "第三方巡检计划")]
            [EnumItemDescription("en-US", "Daily")]
            ThirdParty = 2,
            [EnumItemDescription("zh-CN", "一般计划")]
            [EnumItemDescription("en-US", "Daily")]
            General = 3
        }

        public enum ServerType
        {
            [EnumItemDescription("zh-CN", "小型机")]
            [EnumItemDescription("en-US", "MiniComputer")]
            Mini = 1,
            [EnumItemDescription("zh-CN", "刀片机服务器")]
            [EnumItemDescription("en-US", "Blade")]
            Blade = 2,
            [EnumItemDescription("zh-CN", "PC服务器")]
            [EnumItemDescription("en-US", "PC")]
            PC = 3
        }

        public enum ThirdInspectionType
        {
            [EnumItemDescription("zh-CN", "HP小机巡检")]
            [EnumItemDescription("en-US", "HP")]
            HP = 1,
            [EnumItemDescription("zh-CN", "IBM小机巡检")]
            [EnumItemDescription("en-US", "IBM")]
            IBM = 2
        }

        public enum PlanGroupType
        {
            /// <summary>
            /// 内置
            /// </summary>
            Inner = 1,
            /// <summary>
            /// 自定义
            /// </summary>
            Custom = 2
        }
    }
}
